package com.atguigu.paymentdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 课程表
 *
 * @author wulifeng
 */
@Data
@TableName("t_course_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "课程表")
public class CourseInfo extends Model<CourseInfo> {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 讲师id
     */
    private Long teacherId;
    /**
     * 讲师名称
     */
    private String teacherName;
    /**
     * 课程名称
     */
    private String courseName;
    /**
     * 课程简介
     */
    private String courseIntroduction;
    /**
     * 付费统计
     */
    private Integer payCount;
    /**
     * 原价
     */
    private BigDecimal originalPrice;
    /**
     * 实际价格
     */
    private BigDecimal realPrice;

}
